package cn.huiyunche.base.service.interfaces.impl;

import cn.huiyunche.base.service.interfaces.DCompareFaceResultService;
import cn.huiyunche.base.service.mappers.DCompareFaceResultMapper;
import cn.huiyunche.base.service.model.DCompareFaceResult;
import cn.huiyunche.base.service.model.DCompareFaceResultExample;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Ligl on 2017/3/11.
 */

@Service
public class DCompareFaceResultServiceImpl implements DCompareFaceResultService {


    private static final Logger LOGGER = LoggerFactory.getLogger(DCompareFaceResultServiceImpl.class);

    @Autowired
    private DCompareFaceResultMapper dCompareFaceResultMapper = null;

    private DCompareFaceResultMapper getdCompareFaceResultMapper() {
        return this.dCompareFaceResultMapper;
    }


    @Override
    public Integer add(DCompareFaceResult result) throws Exception {
        return this.getdCompareFaceResultMapper().insertSelective(result);
    }

    @Override
    public List<DCompareFaceResult> selectByExample(DCompareFaceResultExample example) {
        return this.getdCompareFaceResultMapper().selectByExample(example);
    }
}

